<?php
/**
 * Created by PhpStorm.
 * User: lenovo
 * Date: 2020/6/17
 * Time: 10:36
 */

namespace App\Services;


use App\Model\BlacklistModel;

class BlackListService
{
    /**是否黑名单
     * @param $userId
     * @param $dislikeUserId
     * @return bool
     */
    public function isBlackList($userId,$dislikeUserId){
          if(BlacklistModel::create()->get(['user_id'=>$userId,'dislike_user_id'=>$dislikeUserId])){
              return true;
          }
          return false ;
    }
}